{extend name="public/layout"/}
{block name="title"}{$currentInfo.name}_{:web_config('web_title')}{/block}
{block name="head"}
<style>

</style>
{/block}
{block name="body"}
{include file="public/index_header" /}
<div class="page-content">
  <div class="inside-page">
    {include file="public/left_menu"/}
    <div class="content-box">
      <div class="top-news" id="list-box">
      </div>
      <div id="page"></div>
    </div>
  </div>
</div>
{include file="public/index_footer" /}
{/block}
{block name="script"}
<script type="text/html" id="list-tpl">
  <ul class="mc-avg-sm-3 mc-avg-between-lg img-case-list">
  {@each rows as value}
  <li>
    <a href="/home/cms/info.html?id=${value.id}&class_id=${value.class_id}" class="case-item">
      <div class="case-thumb" style="background-image:url(${value.thumb})">
        <div class="qrcode"><img src="/home/index/qrcode.html?text=${value.jump}" alt=""></div>
      </div>
      <div class="case-title">${value.title}</div>
    </a>
  </li>
  {@/each}
  </ul>
</script>
<script>
  var class_id = "{$Request.param.class_id}";
  helper.pagination({
    dataSource: 'getPagelist.html', //默认取rows和total
    params:{class_id:class_id},
    pageSize: 6,
    /* header:function(currentPage,totalPage,totalNumber){
         $('#total-num').text(totalNumber);
         $('#pagebox').html('<span class="page-num">'+currentPage+'</span>/'+totalPage);
     },*/
    callback: function(data, pagination) {
      console.info(data);
      var html=juicer($('#list-tpl').html(),{rows:data});
      $('#list-box').html(html);
    }
  })
</script>
{/block}